﻿using pub.CmdUI.Cmd;

namespace todo.Cmd.View
{
    public class BaseZoomCmd : DefaultCmd
    {
        protected int GetZoom()
        {
            return App.MainForm.Www.Zoom;
        }

        protected void SetZoom(int value)
        {
            var www = App.MainForm.Www;
            www.Zoom = value;
            www.Document.InvokeScript("fitTableWidth", new object[] {true});
        }
    }
}